<template>
	<view class="item">
		<view class="left">
			<view class="name">{{item.type}} {{item.value}}</view>
			<view class="time">{{item.use_time}}</view>
		</view>
		<view class="right">
			<view class="useT">已兑换</view>
		</view>
	</view>
</template>

<script setup>
	defineProps(['item'])
</script>

<style lang="scss" scoped>
	.item {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 20rpx;
		border-bottom: 1rpx solid #eee;
		& :last-child {
			border-bottom: none;
		}

		.left {
			.name {
				color: #000;
			}

			.time {
				color: #6b7280;
				font-size: 20rpx;
			}
		}

		.right {
			.useT {
				color: $theme-color;
			}
		}
	}
</style>